Skip to content

Add cosmos integrate-tests skills#49652

Merged
xinlian12 merged 2 commits into
Azure:mainfrom
xinlian12:users/xinlian12/cosmos-run-integration-tests-skill
Jun 29, 2026
Merged

Add cosmos integrate-tests skills#49652
xinlian12 merged 2 commits into
Azure:mainfrom
xinlian12:users/xinlian12/cosmos-run-integration-tests-skill

Conversation

@xinlian12

Copy link
Copy Markdown
Member

Add cosmos integration tests skills

Copilot AI review requested due to automatic review settings June 26, 2026 20:06
@xinlian12 xinlian12 requested review from a team and kirankumarkolli as code owners June 26, 2026 20:06
@xinlian12 xinlian12 changed the title Add cosmos integrate-tests skills [NO REVIEW]Add cosmos integrate-tests skills Jun 26, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a package-specific Copilot skill under sdk/cosmos/azure-cosmos intended to document how to run azure-cosmos integration/customer-workflow tests locally in a CI-equivalent way.

Changes:

  • Introduces a new cosmos-run-integration-tests skill with step-by-step Maven commands for building and running failsafe-based integration tests.
  • Documents profile → group → suite mappings for customer-workflow test profiles and required account configuration inputs.
  • Links the documented workflow back to the CI pipeline configuration as a reference point.
Show a summary per file
File Description
sdk/cosmos/azure-cosmos/.github/skills/cosmos-run-integration-tests/SKILL.md New skill doc describing CI-equivalent local execution of Cosmos integration/customer-workflow tests.

Review details

  • Files reviewed: 1/1 changed files
  • Comments generated: 9
  • Review effort level: Low

…discovery

Place the cosmos-run-integration-tests skill at
sdk/cosmos/azure-cosmos-tests/.github/skills/cosmos-run-integration-tests/SKILL.md.

The find-package-skill discovery utility inspects only the .github/skills/
directory of the exact package being changed; it does not walk up to the
service root or scan sibling packages. azure-cosmos and azure-cosmos-tests are
sibling Maven modules, and the skill documents how to run the integration tests
that live entirely in azure-cosmos-tests (profiles, testng suites, env vars, and
the -pl azure-cosmos-tests verify commands). In the typical workflow (change
azure-cosmos, add tests in azure-cosmos-tests, then run them) the agent is in
azure-cosmos-tests exactly when it needs this knowledge, so this is the most
discoverable home. The directory name matches the frontmatter 'name' field as
required by vally lint.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@xinlian12 xinlian12 force-pushed the users/xinlian12/cosmos-run-integration-tests-skill branch from 3ce8627 to e4446b4 Compare June 26, 2026 20:24
@xinlian12 xinlian12 changed the title [NO REVIEW]Add cosmos integrate-tests skills Add cosmos integrate-tests skills Jun 26, 2026
…e paths

- Reframe the 'use JDK 21' requirement to 'use the same JDK for build (step 1)
  and test (step 2)'. Step 2 skips compilation, so it runs the classes step 1
  installed; mixing JDKs is what causes the class-file version mismatch. Don't
  hard-code 21 (CI's JavaTestVersion is now 1.25) and make JAVA_HOME illustrative.
- Reference JavaTestVersion (globals.yml) instead of a fixed JDK version.
- Fix step 2 -pl to the com.azure:azure-cosmos-tests coordinate so it works from
  the repo root (matches step 1).
- Prefix report/pom.xml references with sdk/cosmos/ so paths resolve from root.
- Keep the local-convenience flags (e.g. -Denforcer.skip=true) but note they are
  intentional local deviations, not a byte-for-byte CI build.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

@FabianMeiswinkel FabianMeiswinkel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@xinlian12 xinlian12 merged commit 3351277 into Azure:main Jun 29, 2026
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants